<table class="table table-hover">
  <thead>
    <tr>
      <th>ID</th>
      <th>姓名</th>
      <th>电话</th>
      <th style="width:25%">问题</th>
      <th style="width:25%">回答</th>
      <th>提交/回复时间</th>
	    <!--<th>审核状态</th>-->
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <volist name="askedQuestionsLists" id="vo">
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.tel}</td>
        <td>{$vo.question}</td>
        <td class="{$vo['answer']?'green':'red'}">{$vo['answer']?'已回复':'未回复'}</td>
        <td>{$vo['create_time']?date('Y-m-d h:i:s', $vo['create_time']):''}<br/>{$vo['reply_time']?date('Y-m-d h:i:s', $vo['reply_time']):''}</td>
        <!--<td><select name="status" data-id="{$vo['id']}">{$vo['statusOptions']}</select></td>-->
        <td>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/reply/id/{$vo.id}">回复</a>
          <a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="删除中……" data-action-url="__CONTROLLER__/remove">删除</a>
        </td>
      </tr>
    </volist>
  </tbody>
</table>
<div class="pagination">{$pagination}</div>
<style>
  td.green {
    color: #2ecc40;
  }
  td.red {
    color: #ff4136;
  }
</style>
<script type="text/javascript">
$(function(){
	$("select[name='status']").change(function(){
		$.post("__CONTROLLER__/setVerifyStatus", {"id":$(this).attr('data-id'), "status":$(this).val()}, function(data) {
			 $().alertMsg ( {type: "success", msg: data.msg} );
		});
	});	
});
</script>